package query

type Term struct {
	Key   string      `json:"-"`
	Value interface{} `json:"value"`
}

func (t *Term) Empty() bool {
	return t == nil || t.Key == "" || IsAnyEmpty(t.Value)
}

func (t Term) Map() Map {
	return Map{
		t.Key: Map{
			"value": t.Value,
		},
	}
}
